package com.cssy.xxkj.logic.dao;

import java.util.List;

import com.cssy.xxkj.logic.entity.LogicWarehouseDetailsDO;
import com.cssy.xxkj.logic.entity.vo.LogicPurchaseWareSumVO;
import com.cssy.xxkj.logic.entity.vo.LogicWarehouseDetailsVO;
import com.cssy.xxkj.logic.entity.vo.LogicWarehouseEndMonthSumVO;
import com.plat.helper.SearchConditions;

/**
 * 数据访问对象接口
 * @since 2014-09-16
 */
public interface LogicWarehouseDetailsDAO extends LogicBizDAO<LogicWarehouseDetailsDO>{

    /**
     * 插入数据
     * @param logicWarehouseDetailsDO
     * @return 插入数据的主键
     */
    public String insertLogicWarehouseDetailsDO(LogicWarehouseDetailsDO logicWarehouseDetailsDO);

    /**
     * 统计记录数
     * @param logicWarehouseDetailsDO
     * @return 查出的记录数
     */
    public Integer countLogicWarehouseDetailsDOByExample(LogicWarehouseDetailsDO logicWarehouseDetailsDO);

    /**
     * 更新记录
     * @param logicWarehouseDetailsDO
     * @return 受影响的行数
     */
    public Integer updateLogicWarehouseDetailsDO(LogicWarehouseDetailsDO logicWarehouseDetailsDO);

    /**
     * 获取对象列表
     * @param logicWarehouseDetailsDO
     * @return 对象列表
     */
    public List<LogicWarehouseDetailsDO> findListByExample(LogicWarehouseDetailsDO logicWarehouseDetailsDO);

    /**
     * 根据主键获取logicWarehouseDetailsDO
     * @param id
     * @return logicWarehouseDetailsDO
     */
    public LogicWarehouseDetailsDO findLogicWarehouseDetailsDOByPrimaryKey(String id);

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicWarehouseDetailsDOByPrimaryKey(String id);
    
    /**
     * 获取日报
     * @param SearchConditions
     * @return 对象列表
     */
    public List<LogicWarehouseDetailsVO> findDaliyReport(SearchConditions scs);
    
    /**
     * 获取日报数量
     * @param SearchConditions
     * @return 对象列表
     */
    public Integer findDaliyReportCount(SearchConditions scs);
    
    /**
     * 采购入库单汇总统计
     * @param scs
     * @return
     */
    public List<LogicPurchaseWareSumVO> findQueryPcswToSummary(SearchConditions scs);
    
    public Integer countQueryPcswToSummary(SearchConditions scs);
    
    
    public List<LogicWarehouseEndMonthSumVO> findQueryEndMonthToSummary(SearchConditions scs);
    
    public Integer countQueryEndMonthToSummary(SearchConditions scs);
}